package org.example.config;

import com.alipay.api.AlipayClient;
import com.alipay.api.DefaultAlipayClient;

/**
 * @author 
 * @version 1.0
 * @Desc
 * @date 2023/12/15 16:05
 */
public class AlipayConts {
    /**
     * 支付宝网关
     */
    public static final String ALIPAY_GATEWAY = "https://openapi-sandbox.dl.alipaydev.com/gateway.do";
    /**
     * APPID
     */
    public static final String ALIPAY_APPID = "9021000133602218";


    /**
     * 我的私钥
     */
    public static final String MY_PRIVATE_KEY ="MIIEwAIBADANBgkqhkiG9w0BAQEFAASCBKowggSmAgEAAoIBAQDb9DLrVeaIjJUaUETNlEyvIaC6hhdGHkarFTBw8ikTn1/pALVyfClm+bGsmh8JQdq4+/SOLDm0b4wXCSRW+MRvfggFrNZsPl3tSI4WxrFrR4nKNZnJM/CNoFf0X0VbW5izy9KttthOQwI9xLSI0HNoKhXgWIdQz7db2KQ93o1gR3RKuy2h688LlQc3IV3Ljv7ThNII/5zf8BIJ9lWd69VaaCdRfgh4IF2iWK4oAbdL1zSpgMSEgdUwZESq5zAOl4YJcJh4nk+LMOp4d/Uy3CqiXcpC4xvFkkWrV337e/aieJlSQL1gkogJ3iRDIGceA8uHD9eJxmAaRb2SMVC69Ep1AgMBAAECggEBAI/NXQkNVTZLKyRT/FensGcDhlDMYCUAoFUz+kKtn/trREpSo05hLLRdZTMiZE4qFvTADUhyU5vLHfzlhjOyWsNF07raICoOsFv1BqiPaOlpkQV5+7xWz9vYTAjBzNeI0BIknO3j0BGCr9FwbFPSbNFaSoktd/J2iztqLR8iBK4/ciV6DK9DPTF1Rxk+7Fzp4srsrXEGfJg45Nl/YiWe0C4xbFhwX58ap4yRUr2BG9tGMv1fZH8TNWJAYg9ZcOU2jmDVql1BxX94RWTuQjIDXmSCdGAEDT93ygo+bqlg5aXG8ghlL70lI/z+CCZZmBarR5764ysYTtd9ZEZeFJNs/AECgYEA/c7FWdRaUkcPL6IxqSG03KRIVVpijPYX3aVfzn1XhoeOpvO0WbVawDH3c8ZRtgbYEoflOkHpiNG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5UHNyFdy47+04TSCP+c3/ASCfZVnevVWmgnUX4IeCBdoliuKAG3S9c0qYDEhIHVMGREqucwDpeGCXCYeJ5PizDqeHf1Mtwqol3KQuMbxZJFq1d9+3v2oniZUkC9YJKICd4kQyBnHgPLhw/XicZgGkW9kjFQuvRKdQIDAQAB";
    /**;
     * 参数请求格式
     */
    public static final String FORMATE="json";


    /**
     * 编码格式
     */
    public static final String CHARSET="utf-8";

    /**
     * 支付宝公钥
     */
    public static final String ALIPAY_PUBLIC_KEY="MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA8tC8oBBc0rx5AYe10xqyb6bZ9Gitomb1Yv4odDLLn5zMCB9uM2Z89e99GrJfrdLNbjrXc1kDk0jUSwqTtBSKS4piMY10+sCi5jSeXN5AueJDL3g/TXQYoBljg/WFIwhST5rueaeKT88PneypZ6ugO4rBBqy8thpPJmAYQaPyGxQZbtVWZBF0fIL4ySKkdY+j461PLZtSBfPCu4U9++7STS30YskQ59jRjn95bjG8oehQj+yq/uvlXzY3Ap1BeuJW4q/6nUgByUyqyfnaY4A8c2giXxcVItCVugD/oSZA+73zcF78VUz3BZlwNb8g08SEPzpvUDinWIQk47KwkkHIDQIDAQAB";

    /**
     * 签名算法
     */
    public static final String SIGN_TYPE="RSA2";

    /**
     * 同步回调地址
     */
    public static final String RETURN_URL="http://172.20.10.5:8080/order";

    /**
     * 异步回调地址
     */
    public static final String NOTIFY_URL="http://isprs6.natappfree.cc/api/pay-plan/alipayCallback";
    /**
     * 接口调用公共封装
     */
    public static final AlipayClient ALIPAY_CLIENT = new DefaultAlipayClient(AlipayConts.ALIPAY_GATEWAY, AlipayConts.ALIPAY_APPID, AlipayConts.MY_PRIVATE_KEY, AlipayConts.FORMATE, AlipayConts.CHARSET, AlipayConts.ALIPAY_PUBLIC_KEY, AlipayConts.SIGN_TYPE);


    /**
     * 交易成功的状态
     */
    public static final String TRADE_SUCCESS = "TRADE_SUCCESS";
    /**
     * 交易关闭的状态
     */
    public static final String TRADE_CLOSED = "TRADE_CLOSED";

    /**
     * 支付宝未查询到订单
     */
    public static final String TRADE_NOT_EXIST = "ACQ.TRADE_NOT_EXIST";

}

 
